\hypertarget{struct_introdunction_to_algorithm_1_1_tree_algorithm_1_1_binary_tree}{}\section{Introdunction\+To\+Algorithm\+:\+:Tree\+Algorithm\+:\+:Binary\+Tree$<$ Node\+Type $>$ Struct Template Reference}
\label{struct_introdunction_to_algorithm_1_1_tree_algorithm_1_1_binary_tree}\index{Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree$<$ Node\+Type $>$@{Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree$<$ Node\+Type $>$}}


Binary\+Tree：二叉树，算法导论10章10.4节  




{\ttfamily \#include $<$binarytree.\+h$>$}

Inheritance diagram for Introdunction\+To\+Algorithm\+:\+:Tree\+Algorithm\+:\+:Binary\+Tree$<$ Node\+Type $>$\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{struct_introdunction_to_algorithm_1_1_tree_algorithm_1_1_binary_tree}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef Node\+Type\+::\+Key\+Type \hyperlink{struct_introdunction_to_algorithm_1_1_tree_algorithm_1_1_binary_tree_ae2feaade7bbb1e1f436475069cb1cd20}{T}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{struct_introdunction_to_algorithm_1_1_tree_algorithm_1_1_binary_tree_a32fbf1f65e0262839aa38b8eb6744781}{Binary\+Tree} ()
\begin{DoxyCompactList}\small\item\em 默认函数 \end{DoxyCompactList}\item 
std\+::string \hyperlink{struct_introdunction_to_algorithm_1_1_tree_algorithm_1_1_binary_tree_a55874f5ca046b9f3ad1d44c2f7ff4142}{to\+\_\+xml} ()
\begin{DoxyCompactList}\small\item\em to\+\_\+xml\+:返回本树的{\ttfamily xml}描述。 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
std\+::shared\+\_\+ptr$<$ Node\+Type $>$ \hyperlink{struct_introdunction_to_algorithm_1_1_tree_algorithm_1_1_binary_tree_acd08e406313d41bb0dd2e17aabde8482}{root}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename Node\+Type$>$struct Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree$<$ Node\+Type $>$}

Binary\+Tree：二叉树，算法导论10章10.4节 

二叉树通过一个root（若引用）指向一个节点对象。当root为空时，树为空 

Definition at line 13 of file binarytree.\+h.



\subsection{Member Typedef Documentation}
\hypertarget{struct_introdunction_to_algorithm_1_1_tree_algorithm_1_1_binary_tree_ae2feaade7bbb1e1f436475069cb1cd20}{}\index{Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree@{Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree}!T@{T}}
\index{T@{T}!Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree@{Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree}}
\subsubsection[{T}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Node\+Type$>$ typedef Node\+Type\+::\+Key\+Type {\bf Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree}$<$ Node\+Type $>$\+::{\bf T}}\label{struct_introdunction_to_algorithm_1_1_tree_algorithm_1_1_binary_tree_ae2feaade7bbb1e1f436475069cb1cd20}
树的节点存储数据的类型 

Definition at line 15 of file binarytree.\+h.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{struct_introdunction_to_algorithm_1_1_tree_algorithm_1_1_binary_tree_a32fbf1f65e0262839aa38b8eb6744781}{}\index{Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree@{Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree}!Binary\+Tree@{Binary\+Tree}}
\index{Binary\+Tree@{Binary\+Tree}!Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree@{Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree}}
\subsubsection[{Binary\+Tree()}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Node\+Type$>$ {\bf Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree}$<$ Node\+Type $>$\+::{\bf Binary\+Tree} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{struct_introdunction_to_algorithm_1_1_tree_algorithm_1_1_binary_tree_a32fbf1f65e0262839aa38b8eb6744781}


默认函数 

新建的二叉树默认为空 

Definition at line 21 of file binarytree.\+h.



\subsection{Member Function Documentation}
\hypertarget{struct_introdunction_to_algorithm_1_1_tree_algorithm_1_1_binary_tree_a55874f5ca046b9f3ad1d44c2f7ff4142}{}\index{Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree@{Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree}!to\+\_\+xml@{to\+\_\+xml}}
\index{to\+\_\+xml@{to\+\_\+xml}!Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree@{Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree}}
\subsubsection[{to\+\_\+xml()}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Node\+Type$>$ std\+::string {\bf Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree}$<$ Node\+Type $>$\+::to\+\_\+xml (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{struct_introdunction_to_algorithm_1_1_tree_algorithm_1_1_binary_tree_a55874f5ca046b9f3ad1d44c2f7ff4142}


to\+\_\+xml\+:返回本树的{\ttfamily xml}描述。 

\begin{DoxyReturn}{Returns}
\+: 树的{\ttfamily xml}描述的字符串
\end{DoxyReturn}
该函数获取本树的{\ttfamily xml}描述 

Definition at line 31 of file binarytree.\+h.



\subsection{Member Data Documentation}
\hypertarget{struct_introdunction_to_algorithm_1_1_tree_algorithm_1_1_binary_tree_acd08e406313d41bb0dd2e17aabde8482}{}\index{Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree@{Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree}!root@{root}}
\index{root@{root}!Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree@{Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree}}
\subsubsection[{root}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Node\+Type$>$ std\+::shared\+\_\+ptr$<$Node\+Type$>$ {\bf Introdunction\+To\+Algorithm\+::\+Tree\+Algorithm\+::\+Binary\+Tree}$<$ Node\+Type $>$\+::root}\label{struct_introdunction_to_algorithm_1_1_tree_algorithm_1_1_binary_tree_acd08e406313d41bb0dd2e17aabde8482}
树的根节点，时一个指向节点对象的强引用 

Definition at line 39 of file binarytree.\+h.



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
src/tree\+\_\+algorithms/binarytree/\hyperlink{binarytree_8h}{binarytree.\+h}\end{DoxyCompactItemize}
